require 'test/unit'

require 'models/character'
require 'models/account'

class CharacterTest < Test::Unit::TestCase
    def setup
    end
    def test_player_or_npc
        c = Character.new
        c.oid = 1
        assert(! c.player?)


        a = Account.new
        a.oid = 1
        AccountDatabase.instance.add(a)

        c.account = a
        assert(c.player?)
    end
end
